<?php require('top.php') ?>
<?php $banners = $this->list_advertisement(); 
if(!empty($banners))
$banner = $banners[0]; 
?>
<table border="0" align="center" cellpadding="0" cellspacing="0" class="index">
  <tr>
    <td  
	<?php if (!empty($banner['adv_image']) && file_exists('uploads/adv/'.$banner['adv_image'])) echo 'style="background-image:url('.url::base().'uploads/adv/'.$banner['adv_image'].')"'; else echo 'class="index_header"' ?> ><?php require('header.php')?></td>
  </tr>
   <tr>
    <!--<td class="search">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><?php 
	$day = date('j',time());
	$mlistGolde = $this->get_golden_lable();
	?>
    <span style="color:#FFF; font-weight:bold"><?php echo @$mlistGolde[$day]['goldens_title'];?></span></td>
    <td  width="50px">
    <input name="txt_search" type="text" value="" style="width:8em; height:0.9em;" />
       <td width="50px">
    <button type="submit" class="button"> <span>Search</span></button></td>
  </tr>
</table>

    </td>
  </tr>-->
  <tr>
    <td valign="middle" class="center_menu">
	<?php require('menu.php')?>
	</td>
  </tr>
 
  <tr>
    <td class="index_content"><table class="frame" width="100%" border="0">
      <tr>
        <td valign="top" class="frame_middle"><?php echo $content ?></td>
        <td align="right" valign="top" class="frame_right"><?php require('right.php') ?></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="index_footer"><?php require('footer.php') ?></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
<?php 
 $uri = $this->uri->segment(1);
 if(empty($uri)){
	$day = date('j',time());
	$mlistGolde = $this->get_golden_lable();
	if(!empty($mlistGolde[$day]['goldens_image'])){
	?>
<div id="modal" style="border:3px solid black; background-color:#333333; padding:0px; font-size:100%; text-align:center; display:none; width:722px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
  <tr>
    <td><img style="CURSOR: pointer" onclick="Pop_HideWindow(); return false;"  src="uploads/gallery/vn/<?php echo @$mlistGolde[$day]['goldens_image']?>" />
	<img  style="CURSOR: pointer; background:#FFFFFF" onclick="Popup.hide('modal')" src="<?php echo $this->site['theme_url']?>index/pics/closelabel.gif"  align="right"/></td>
  </tr>
</table>
	
</div>	
	<?php }?></td>
  </tr>
</table>
<?php 
$day = date('j',time());
$mlistGolde = $this->get_golden_lable();
if(!empty($mlistGolde[$day]['goldens_image'])){?>
<SCRIPT language="javascript" src="<?php echo $this->site['base_url']?>themes/plugins/js/popuphome.js"type=text/javascript></SCRIPT>
<script language="javascript">
Popup.showModal('modal');
</script>
<?php 

}
}
?>
<?php require('bottom.php') ?>